#ifndef MOTORCONTROL_H__
#define MOTORCONTROL_H__

#include "board.h"
#include "pid.h"
#include "IncCtrl.h"
#include "MC_parameters.h"
#include "HBridge.h"
#include "Encoder.h"
#include "PosSpdFeedback.h"
#include "DCMotor.h"


#define MC_VERSION  "0.0.0"


// ===== ===== ===== ===== ===== ===== =====
// Default Parameters
// ===== ===== ===== ===== ===== ===== =====

// ===== Common =====
#define DEFAULT_RESERVED 0U

// ===== Motor_TypeDef =====
#define DEFAULT_MOT_CTRL_MOD MotCtrlMod_SpdPid

// ===== H-Bridge =====
#define DEFAULT_HB_STATE        HB_State_Brake
#define DEFAULT_HB_DIRMODE      HB_DirMode_AHBLasForward
#define DEFAULT_HB_DIR          HB_Dir_Forward

// ===== Encoder =====
#define DEFAULT_ENC_DIRMODE         Enc_DirMode_0
#define DEFAULT_ENC_PULS_PER_REV    5  // value for test

#endif  // MOTORCONTROL_H__
